package com.flyco.modules.cms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 文章评价点赞明细表
 * @Author: flyco
 * @Date:   2020-07-16
 * @Version: V1.0
 */
@Data
@TableName("cms_article_v2_like")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="cms_article_v2_like对象", description="文章评价点赞明细表")
public class CmsArticleV2Like {
    
	/**用户防止重复（{article_id}-{ifnull(comment_id,0）}-{ifnull(reply_id,0)}-{member_id}*/
	@TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "用户防止重复（{article_id}-{ifnull(comment_id,0）}-{ifnull(reply_id,0)}-{member_id}")
	private String id;
	/**文章id*/
	@Excel(name = "文章id", width = 15)
    @ApiModelProperty(value = "文章id")
	private Long articleId;
	/**评论id*/
	@Excel(name = "评论id", width = 15)
    @ApiModelProperty(value = "评论id")
	private Long commentId;
	/**评论回复id*/
	@Excel(name = "评论回复id", width = 15)
    @ApiModelProperty(value = "评论回复id")
	private Long repayId;
	/**type=1是文章,=2是评论.=3回复*/
	@Excel(name = "type=1是文章,=2是评论.=3回复", width = 15)
    @ApiModelProperty(value = "type=1是文章,=2是评论.=3回复")
	private Integer type;
	/**点赞用户ID*/
	@Excel(name = "点赞用户ID", width = 15)
    @ApiModelProperty(value = "点赞用户ID")
	private Long memberId;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**删除状态：0->未删除；1->已删除*/
	@Excel(name = "删除状态：0->未删除；1->已删除", width = 15)
    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
	private Integer deleteStatus;
}
